{{!

  Copyright (c) Meta Platforms, Inc. and affiliates.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.

}}// @{{!}}generated by Thrift for {{program:autogen_path}}
// This file is probably not the place you want to edit!

#![allow(non_camel_case_types, non_snake_case, non_upper_case_globals{{!
}}{{^program:multifile?}}, unused_crate_dependencies{{/program:multifile?}}{{!
}}, clippy::redundant_closure, clippy::type_complexity)]

{{! Allows lib/type.mustache to use `crate::types::Type` regardless of which crate it's called from }}
#[allow(unused_imports)]
pub(crate) use {{program:crate}} as types;

{{#program:serde?}}
{{! Work around https://github.com/rust-lang/rust/issues/46991 }}
extern crate serde;
{{/program:serde?}}

{{#program:valuable?}}
{{! Work around https://github.com/rust-lang/rust/issues/46991 }}
extern crate valuable;
{{/program:valuable?}}{{!

}}{{#program:types_include_srcs}}
include!("{{.}}");
{{/program:types_include_srcs}}

{{#program:current_split_typedefs}}
    {{> lib/typedef}}
    {{> lib/typedefimpl}}
{{/program:current_split_typedefs}}

{{#program:current_split_structs}}
    {{^struct:has_adapter?}}
    {{> lib/struct}}

    {{> lib/structimpl}}
    {{> lib/unionimpl}}
    {{/struct:has_adapter?}}
{{/program:current_split_structs}}

{{#program:current_split_enums}}
{{> lib/enum}}
{{/program:current_split_enums}}

{{#program:nonexhaustiveStructs?}}
mod dot_dot {{> lib/block}}{{!
    NOTE: intentionally no Default impl}}
    #[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash{{#program:valuable?}}, ::valuable::Valuable{{/program:valuable?}})]
    pub struct OtherFields(pub(crate) ());

    #[allow(dead_code)] // if serde isn't being used
    pub(super) fn default_for_serde_deserialize() -> OtherFields {
        OtherFields(())
    }
}
{{/program:nonexhaustiveStructs?}}
